<template>
	<view class="content">
		<u-sticky>
			<view class="ui_head">
				<view class="ui_head_search">
					<u--input shape="circle" placeholder="搜索订单" prefixIcon="search"
						prefixIconStyle="font-size: 22px;color: #909399"></u--input>
				</view>
				<view class="ui_head_tabs">
					<u-tabs :list="tabs" @click="click" lineWidth="20" lineColor="#9F6F26" :scrollable="false"></u-tabs>
				</view>
			</view>
		</u-sticky>


		<view class="item">
			<view class="item_head">
				<view class="item_head_left">订单编号：D02025052605680</view>
				<view class="item_head_right">待审核</view>
			</view>
			<view class="item_content">
				<image class="item_content_img"
					src="https://img0.baidu.com/it/u=2748363669,2526559495&fm=253&fmt=auto&app=120&f=JPEG?w=760&h=760">
				</image>
				<view class="item_content_text">鳗漫养manmanyang 鳗鱼肽赋活水</view>
				<view class="item_content_total">
					<view class="item_content_total_money">¥26000.00</view>
					<view class="item_content_total_num">共100件</view>
				</view>
			</view>
			<view class="item_btns">
				<view class="item_btns_item" @click="goTo('/pages/user/order_check_detail')">查看明细</view>
				<!-- <view class="item_btns_item s" @click="goTo('/pages/user/order_check_detail')">去审核</view> -->
			</view>
		</view>

		<view class="item" v-for="(item,index) in 4" :key="index">
			<view class="item_head">
				<view class="item_head_left">订单编号：D02025052605680</view>
				<view class="item_head_right">待审核</view>
			</view>
			<view class="item_content">
				<image class="item_content_img"
					src="https://img0.baidu.com/it/u=2748363669,2526559495&fm=253&fmt=auto&app=120&f=JPEG?w=760&h=760">
				</image>
				<image class="item_content_img"
					src="https://img0.baidu.com/it/u=2748363669,2526559495&fm=253&fmt=auto&app=120&f=JPEG?w=760&h=760">
				</image>
				<view class="item_content_total">
					<view class="item_content_total_money">¥7280.00</view>
					<view class="item_content_total_num">共100件</view>
				</view>
			</view>

			<view class="item_btns">
				<view class="item_btns_item" @click="goTo('/pages/user/order_check_detail')">查看明细</view>
				<view class="item_btns_item s" @click="goTo('/pages/user/order_check_detail')">去审核</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabs: [{
					name: '全部',
				}, {
					name: '待审核',
					badge: {
						value: 5,
					}
				}, {
					name: '已完成',
				}]
			}
		},
		methods: {
			click(item) {
				console.log('item', item);
			},
			goTo(url) {
				console.log(url)
				this.$util.navTo(url)
			},

		}
	}
</script>

<style lang="less">
	.content {
		width: 750rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.item {
			margin-top: 20rpx;
			width: 714rpx;
			background: #FFFFFF;
			border-radius: 10rpx;
			display: flex;
			flex-direction: column;

			&_head {
				width: 654rpx;
				margin-left: 30rpx;
				margin-top: 20rpx;
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 24rpx;
				color: #9F6F26;
				display: flex;

				&_left {
					flex: 1;
					color: #999;
				}
			}

			&_content {
				display: flex;
				height: 130rpx;
				align-items: center;
				margin-left: 15rpx;
				padding-right: 10rpx;
				position: relative;

				&_img {
					margin-left: 10rpx;
					width: 80rpx;
					height: 80rpx;
					background: #F4F4F4;
					border-radius: 10rpx;
				}

				&_text {
					margin-left: 20rpx;
					width: 360rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 26rpx;
					color: #333333;
					line-height: 36rpx;
				}

				&_total {
					flex: 1;
					display: flex;
					flex-direction: column;
					align-items: flex-end;
					margin-right: 20rpx;

					&_money {
						font-family: D-DIN Condensed;
						font-weight: bold;
						font-size: 36rpx;
						color: #333333;
					}

					&_num {
						font-family: PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: #999999;
						line-height: 36rpx;
					}
				}
			}

			&_btns {
				width: 100%;
				height: 60rpx;
				margin-bottom: 20rpx;
				display: flex;
				justify-content: flex-end;

				&_item {
					width: 160rpx;
					line-height: 60rpx;
					text-align: center;
					background: #FFFFFF;
					border-radius: 30rpx;
					border: 1px solid #999999;
					background: #FFFFFF;
					border-radius: 30rpx;
					margin-right: 20rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 26rpx;
					color: #333333;
				}

				.s {
					border: 0px;
					background: linear-gradient(90deg, #C7974E, #986B28);
					color: #FFFFFF;
				}
			}
		}

		.ui_head {
			width: 750rpx;
			display: flex;
			flex-direction: column;
			background-color: white;

			&_search {
				width: 710rpx;
				margin-left: 20rpx;
			}

			&_tabs {
				width: 750rpx;
			}
		}
	}
</style>